import type { IList, IResult } from "@/types/common";
import { getAxios, commonAxiosJson } from "@/utils/request.js";
const url = "/back/red-packet";
/*红包管理数据：获取红包 信息 */
export const getRedEnvelopeManagementInfo = <T, D>(params?: D): Promise<IResult<IList<T>>> => {
  return getAxios<IList<T>, D>(url, params);
};
/* 红包管理数据：修改用户红包信息(充值) */
export const putRedRechargeInfo = <T, D>(params: D): Promise<IResult<T>> => {
  return commonAxiosJson<T, D>(url + "/recharge", params, "PUT");
};
